<div class="row xbs-separated first-xbs-separated">
    {{--中医 value=0 ⬇--}}
    <input type="hidden" id="CnOrWeType" value='0'>
    <div class="col-xs-12">
        <span>既往史</span>
    </div>
</div>
<div class="row margin-top-15">
    <div class="col-xs-12">
        <table class="table-bordered text-center medicalHistory-table chinsesTable_input">
            <thead>
            <tr>
                <th class="col-lg-2">病史</th>
                <th class="col-lg-3">持续时间</th>
                <th class="col-lg-7">现服用药物</th>
            </tr>
            </thead>
            <tbody>
            {{--<td id="hiddenTd" style="display:none" data-name="extra" class="inputList">--}}
            {{--<input type="hidden" data-name="" name="extra">--}}

            {{--</td>--}}

            <!--肥胖-->
            <tr>
                <td class="bg-default">肥胖</td>
                <td class="inputList" data-name="fat">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_fatdate"
                               class="form-control input-text maxMonth startTime but_Fonts"
                               data-toggle="datepicker" placeholder="请选择开始时间">
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">体重(kg)</span>
                        <input type="number" data-name="weight" name="jws_gainweight"
                               class="form-control input-text maskNum weightchangekg but_Fonts3"
                               data-title="肥胖体重" placeholder="请输入体重(单位:kg)">
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        {{--2018.1.31  肥胖的开始时间改为时间，结束时间去掉 --}}
                        {{--<span class="input-title">结束时间</span>--}}
                        {{--<input type="text" data-name="duration" name="jws_fatyear"--}}
                        {{--class="form-control input-text maxMonth endTime"--}}
                        {{--placeholder="请选择结束时间" data-toggle="datepicker">--}}
                    </div>
                </td>
                <td class="drugList" data-name="fat">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--高血压-->
            <tr>
                <td class="bg-default">高血压史</td>
                <td class="inputList" data-name="hypertension">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_hypertensiondate"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="hypertension">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--冠心病-->
            <tr>
                <td class="bg-default">冠心病</td>
                <td>
                    <div class="medicalHistory-box coronary_disease">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_coronaryheartyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">支架置入时间</span>
                        <div class="input-text">
                            <button type="button"
                                    class="btn btn-outline btn-primary stentsPlacementTimeBtn"
                                    data-toggle="modal" data-target="#addStentsTime"
                                    data-id="jwsStentsPlacementTime">添加
                            </button>
                        </div>
                    </div>
                    <div class="margin-top-10 coronary_disease_table"
                         id="jwsStentsPlacementTime"></div>
                    <div class="medicalHistory-box margin-top-10 coronary_disease">
                        <span class="input-title">搭桥时间</span>
                        <input type="text" data-name="cabg" name="jws_bypasstime"
                               class="form-control input-text maxMonth" data-toggle="datepicker"
                               placeholder="请选择搭桥时间">
                    </div>
                </td>
                {{--<td class="drugList" data-name="coronary_disease">--}}
                {{--<div id="gxbDrug">--}}
                {{--<ul class="sui-tag">--}}

                {{--</ul>--}}
                {{--</div>--}}
                {{--<button type="button" class="btn btn-outline btn-primary selectDrugBtn"--}}
                {{--data-toggle="modal" data-target="#selectDrugs" data-id="gxbDrug">选择药物--}}
                {{--</button>--}}
                {{--</td>--}}
                <td class="drugList" data-name="coronary_disease">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--高尿酸血症-->
            <tr>
                <td class="bg-default">高尿酸血症</td>
                <td class="inputList" data-name="hyperuricemia">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_hypertensiondate"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="hyperuricemia">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--高脂血症-->
            <tr>
                <td class="bg-default">高脂血症</td>
                <td class="inputList" data-name="hyperlipidemia">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_hyperlipemiayear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="hyperlipidemia">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--脂肪肝-->
            <tr>
                <td class="bg-default">脂肪肝</td>
                <td class="inputList" data-name="fatty_liver">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_fattyliveryear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="fatty_liver">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--肝炎-->
            <tr>
                <td class="bg-default">肝炎</td>
                <td class="inputList" data-name="hepatitis">
                    <div class="medicalHistory-box">
                        <span class="input-title">肝炎类型</span>
                        <select data-name="type" class="form-control m-b input-text margin-bottom-0"
                                name="jws_hepatitistype">
                            <option value="">请选择</option>
                            <option value="2">乙型肝炎</option>
                        </select>
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">开始时间</span>
                        <input type="text" data-name="duration" name="jws_hepatitisyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="hepatitis">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--胰腺炎史-->
            <tr>
                <td class="bg-default">胰腺炎史</td>
                <td class="inputList" data-name="pancreatitis">
                    <div class="medicalHistory-box">
                        <span class="input-title">急性</span>
                        <input type="text" data-name="acute" name="jws_jpancreatitisyear"
                               data-toggle="datepicker"
                               class="form-control input-text maxMonth pancreatitisInput"
                               placeholder="请选择时间">
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">慢性</span>
                        <input type="text" data-name="chronic" name="jws_mpancreatitisyear"
                               data-toggle="datepicker"
                               class="form-control input-text maxMonth pancreatitisInput"
                               placeholder="请选择时间">
                    </div>
                </td>
                <td class="drugList" data-name="pancreatitis">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--胰腺手术史-->
            <tr>
                <td class="bg-default">胰腺手术史</td>
                <td class="inputList" data-name="pancreatic_operation">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_operationtime"
                               data-toggle="datepicker" class="form-control input-text maxMonth"
                               placeholder="请选择时间">
                    </div>
                </td>
                <td class="drugList" data-name="pancreatic_operation">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--肾功能不全-->
            <tr>
                <td class="bg-default">肾功能不全</td>
                <td class="inputList" data-name="renal">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_renalinsufficiencyyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="renal">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--脑梗死-->
            <tr>
                <td class="bg-default">脑梗死</td>
                <td class="inputList" data-name="cerebral_infarction">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_cerebralinfarctionyear"
                               data-toggle="datepicker" class="form-control input-text maxMonth"
                               placeholder="请选择时间" data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="cerebral_infarction">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--多囊卵巢综合征-->
            <tr>
                <td class="bg-default">多囊卵巢综合征</td>
                <td class="inputList" data-name="pcos">
                    <div class="medicalHistory-box">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_pcosyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="pcos">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--甲状腺功能-->
            <tr>
                <td class="bg-default">甲状腺功能</td>
                <td class="inputList" data-name="thyroid">
                    <div class="medicalHistory-box">
                        <span class="input-title">功能类型</span>
                        <select data-name="type" class="form-control m-b input-text margin-bottom-0"
                                name="jws_thyroidglandtype">
                            <option value="">请选择</option>
                            <option value="1">亢进</option>
                            <option value="2">减退</option>
                        </select>
                    </div>
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_thyroidfunctionyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="thyroid">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--外伤手术史-->
            <tr>
                {{--新添加外伤手术史 todo --}}
                <td class="bg-default">外伤手术史</td>
                <td class="inputList" data-name="trauma">
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_traumafunctionyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="trauma">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            <!--输血史-->
            <tr>
                <td class="bg-default">输血史</td>
                <td class="inputList" data-name="transfusion">
                    <div class="medicalHistory-box">
                        <span class="input-title">次数(次)</span>
                        <input type="number" data-name="times" name="jws_bloodtransfusionyear"
                               class="form-control input-text maskNum positiveInteger"
                               data-title="输血史次数" placeholder="请输入次数(单位:次数)">
                    </div>
                </td>
                <td></td>
            </tr>

            <!--过敏史-->
            <tr>
                <td class="bg-default">过敏史</td>
                <td class="inputList" data-name="irritability">
                    <div class="medicalHistory-box">
                        <span class="input-title">过敏物</span>
                        <input type="text" data-name="items" name="jws_allergicfooddrug"
                               maxlength="50" class="form-control input-text" placeholder="请输入过敏物">
                    </div>
                </td>
                <td></td>
            </tr>
            {{--新添加 传染病史 todo --}}
            <tr>
                <td class="bg-default">传染病史</td>
                <td class="inputList" data-name="contagion">
                    <div class="medicalHistory-box margin-top-10">
                        <span class="input-title">时间</span>
                        <input type="text" data-name="time" name="jws_contagionfunctionyear"
                               class="form-control input-text maxMonth" placeholder="请选择时间"
                               data-toggle="datepicker">
                    </div>
                </td>
                <td class="drugList" data-name="contagion">
                    <button type="button"
                            class="btn btn-outline btn-primary selectDrugBtn addMedicationBtn cn_jwsAddMedi"
                            data-toggle="modal" data-target="#addMedication" data-id="fpDrug">选择药物
                    </button>
                </td>
            </tr>

            </tbody>
        </table>
        <button class="btn btn-outline btn-primary margin-top-20" data-toggle="modal"
                data-target="#addJwsCase">添加一组病史
        </button>
    </div>
</div>


{{--手术史和用药史暂时注释去掉 ⬇️ 2018.3.21--}}
{{--<div class="row xbs-separated margin-top-15">--}}
{{--<div class="col-xs-6">--}}
{{--<span>手术史</span>--}}
{{--</div>--}}
{{--<div class="col-xs-6 text-right">--}}
{{--<button type="button" class="btn btn-outline btn-primary jwsAddSurgeryBtn"--}}
{{--data-toggle="modal" data-target="#addSurgery" data-id="jwsAddSurgery">添加手术--}}
{{--</button>--}}
{{--</div>--}}
{{--</div>--}}
{{--<div class="row margin-top-15">--}}
{{--<div class="col-xs-12" id="jwsAddSurgery">--}}

{{--</div>--}}
{{--</div>--}}

{{--<div class="row xbs-separated margin-top-15">--}}
{{--<div class="col-xs-6">--}}
{{--<span>用药史</span>--}}
{{--</div>--}}
{{--<div class="col-xs-6 text-right">--}}
{{--将此 data-id 由 jwsAddMedication 改为 jwsAddMedication1 ，为了控制住宿和既往史各自添加药物不冲突 川 2017-11-13 ↓--}}
{{--<button type="button" class="btn btn-outline btn-primary addMedicationBtn"--}}
{{--data-toggle="modal" data-target="#addMedication" data-id="jwsAddMedication">添加用药--}}
{{--</button>--}}
{{--</div>--}}
{{--</div>--}}
{{--<div class="row margin-top-15">--}}
{{--将此 ID 由 jwsAddMedication也要改为 jwsAddMedication1 ，原因同上  ↓--}}
{{--<div class="col-xs-12" id="jwsAddMedication"></div>--}}
{{--</div>--}}
{{--手术史和用药史暂时注释去掉 ⬆️ 2018.3.21--}}


<!--备注-->
<div class="row margin-top-15">
    <div class="col-xs-12 xbs-separated">
        <span>备注信息</span>
    </div>
</div>
<div class="row margin-top-20">
    <div class="col-xs-12 weight-change">
        {{--<span class="weight-title">备注信息</span>--}}
        <textarea name="remark" rows="10" placeholder="请填写备注信息" maxlength="255"></textarea>
    </div>
</div>
<!--保存按钮-->
<div class="row margin-top-20">
    <div class="col-xs-6 text-right">
        <button type="button" class="btn btn-outline btn-primary btn-lg" id="jwsSave">保存</button>
    </div>
    <div class="col-xs-6">
        <button type="button" class="btn btn-outline btn-primary btn-lg" id="jwsSaveNext">保存并下一步
        </button>
    </div>
</div>
<input type="hidden" class="jwsId">